Don't redraw tool bar for Gtk+ unless out of date.
authorJan D. <jan.h.d@swipnet.se>
Mon, 13 Aug 2012 19:12:26 +0000 (21:12 +0200)
committerJan D. <jan.h.d@swipnet.se>
Mon, 13 Aug 2012 19:12:26 +0000 (21:12 +0200)
commitd544bd44d98c7d2b50ffa870694b25292a44535d
tree4b3953b899aadb1112f1703f2be51a0a69519f56
parent54bd2b83f979e92d6c9bb7b6a071220da823747f
Don't redraw tool bar for Gtk+ unless out of date.

* gtkutil.c (xg_frame_tb_info): New struct.
(TB_INFO_KEY): New define.
(xg_free_frame_widgets): Free xg_frame_tb_info for frame if present.
(xg_mark_data): Mark Lisp_Objects in xg_frame_tb_info.
(xg_create_tool_bar): Allocate and initialize a xg_frame_tb_info
if not present.
(update_frame_tool_bar): Return early if data in xg_frame_tb_info
is up to date. Otherwise store new data.
(free_frame_tool_bar): Free xg_frame_tb_info if present.
src/ChangeLog
src/gtkutil.c